/**
 * @Copyright (c) 2006,东登信息网络有限公司
 * @All rights reserved.
 *
 * 用于Debug
 *
 * @file_name   Console.js
 * @version     1.0
 * @author      黄新泽
 * @date        2007-10-08 16:09:40
 */

/**
 * Class and Function List:
 * Function list:
 * - initialize: function()
 */

var Debug = Class.create({
	/**
	 * 构造函数
	 *
	 * @access	public
	 */
	initialize: function()
	{
	},

	debug: function(msg, obj)
	{
	},

	info: function(msg, obj)
	{
	},

	warn: function(msg, obj)
	{
	},

	error: function(msg, obj)
	{
	}
});


//if (!window.console || !console.firebug)
if (!window.console || !console.info)
{
    var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
    "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];

    window.console = new Debug();

    for (var i = 0; i < names.length; ++i)
        window.console[names[i]] = function() {}
}